﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for AdminBLL
/// </summary>
public class AdminBLL
{
    private IRoles iRoles;
    private IUsers iUsers;
    private IUserProfiles iUserProfiles;
    private IPosts iPosts;

	//Create contructor
    public AdminBLL()
	{
        this.iRoles = new RoleDAL();
        this.iUsers = new UsersDAL();
        this.iUserProfiles = new UserProfilesDAL();
        this.iPosts = new PostsDAL();
	}
    //Create contructor
    public AdminBLL(RoleDAL roleDAL, UsersDAL usersDAL)
    {
        this.iRoles = roleDAL;
        this.iUsers = usersDAL;
    }

    public IRoles GetIRoles
    {
        get { return iRoles; }
        set { iRoles = value; }
    }

    public IUsers GetIUsers
    {
        get { return iUsers; }
        set { iUsers = value; }
    }

    public IUserProfiles GetIUserProfiles
    {
        get { return iUserProfiles; }
        set { iUserProfiles = value; }
    }

    public IPosts GetIPosts
    {
        get { return iPosts; }
        set { iPosts = value; }
    }
}